<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title><?= $header ?></title>
    <style>
        .container {
            width: 60%;
            margin: 10% auto 0;
            background-color: #f0f0f0;
            padding: 2% 5%;
            border-radius: 10px
        }

        ul {
            padding-left: 20px;
        }

        ul li {
            line-height: 2.3
        }

        a {
            color: #20a53a;
            padding: 0 8px;
        }

        b {
            padding: 0 0 0 20px;
        }
    </style>
    <script>
        window.onload = function () {
            let obj = new Date;
            document.getElementById('year').innerHTML = obj.getFullYear() || '2025';
        }
    </script>
</head>
<body>
<div class="container">
    <h1><?= $content ?></h1>
    <h3>API接口调用方法</h3>
    <ul>
        <li>IMDB影视条目：http://movie.iyuu.cn/title/(tt\d+)<b>示例：http://movie.iyuu.cn/title/tt13696296</b><a
                    href="http://movie.iyuu.cn/title/tt13696296" target="_blank">Chinese Doctors（中国医生）</a></li>
        <li>豆瓣影视条目：http://movie.iyuu.cn/subject/(\d+)<b>示例：http://movie.iyuu.cn/subject/35087699</b><a
                    href="http://movie.iyuu.cn/subject/35087699" target="_blank">中国医生</a></li>
        <li>豆瓣演职员：http://movie.iyuu.cn/celebrities/(\d+)<b>示例：http://movie.iyuu.cn/celebrities/35087699</b><a
                    href="http://movie.iyuu.cn/celebrities/35087699" target="_blank">中国医生</a></li>
        <li>开源仓库：<a href="https://gitee.com/ledc/yaf" target="_blank"><img
                        src="https://gitee.com/ledc/yaf/badge/star.svg?theme=dark" alt="star"></a></li>
        <li>更多功能敬请期待！<a href="https://www.iyuu.cn" target="_blank">大卫Blog</a>
            <?php
            echo "I am ", $name;
            ?></li>
    </ul>
    <div>Copyright &copy; 2014-<span id="year">2021</span><a href="http://movie.iyuu.cn"
                                                             target="_blank">movie.iyuu.cn</a>版权所有
    </div>
</div>
</body>
</html>
